/* CSS样式部分 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* 表格样式 */
.students-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.students-table th {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 16px 20px;
    font-size: 1.1em;
    border: 2px solid #388E3C;
}

.students-table td {
    border: 2px solid #e0e0e0;
    padding: 14px 18px;
    text-align: left;
    color: #333;
    transition: all 0.3s ease;
}

.students-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.students-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.students-table tr:hover {
    background-color: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.students-table tr:hover td {
    border-color: #2196F3;
    color: #1976D2;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
    font-weight: bold;
}

.error {
    text-align: center;
    padding: 20px;
    color: #d32f2f;
    background-color: #ffebee;
    border: 2px solid #f44336;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    .students-table {
        font-size: 14px;
    }
    
    .students-table th,
    .students-table td {
        padding: 10px 12px;
    }
    
    h1 {
        font-size: 1.8em;
    }
}